package com.gec.teams.wechat.mapper;

import com.gec.teams.wechat.pojo.TbHolidays;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author Admin
* @description 针对表【tb_holidays(节假日表)】的数据库操作Mapper
* @createDate 2024-06-12 22:40:29
* @Entity com.gec.teams.wechat.pojo.TbHolidays
*/
@Mapper
public interface TbHolidaysMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TbHolidays record);

    int insertSelective(TbHolidays record);

    TbHolidays selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbHolidays record);

    int updateByPrimaryKey(TbHolidays record);

    @Select("SELECT id FROM tb_holidays WHERE date=current_date limit 1")
    Integer isTodayHoliday();
}
